package com.hikw.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: controller
 * @ClassNmae: SecurityController
 * @Author: 何同学
 * @DateTime: 2022-02-18 15:27
 **/
@RestController
public class SecurityController {

    @GetMapping({"/", "/test"})
    public String test() {
        return "你好，SpringSecurity！";
    }

    @GetMapping("/index")
    public String toIndex() {
        return "Index";
    }

    @GetMapping("/about")
    public String toAbout() {
        return "About";
    }


}
